package com.xiyu.service.errorCode.material;

import com.xiyu.service.framework.exception.ErrorCode;

/**
* transfer 错误码枚举类
*
* transfer 调拨单管理，使用 1009007000段
*/
public interface TransferErrorCode {
    Integer ERROR_CODE_START_CODE = 1009007000;

    ErrorCode MATERIAL_TRANSFER_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE, "调拨单不存在");
    ErrorCode MATERIAL_TRANSFER_DETAIL_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE + 1, "调拨单明细不存在");
    ErrorCode MATERIAL_TRANSFER_NOT_PENDING_REVIEW = new ErrorCode(ERROR_CODE_START_CODE + 2, "调拨单状态不是待审核");
    ErrorCode MATERIAL_TRANSFER_NOT_PENDING_IN = new ErrorCode(ERROR_CODE_START_CODE + 3, "调拨单状态不是待入库");
    ErrorCode MATERIAL_TRANSFER_NOT_PARTIAL_IN = new ErrorCode(ERROR_CODE_START_CODE + 4, "调拨单状态不是部分入库");
    ErrorCode MATERIAL_TRANSFER_NOT_PARTIAL_OUT = new ErrorCode(ERROR_CODE_START_CODE + 5, "调拨单状态不是部分出库");
    ErrorCode MATERIAL_TRANSFER_DETAIL_NOT_EMPTY = new ErrorCode(ERROR_CODE_START_CODE + 6, "调拨单明细至少有一条");
}